<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <h1>ES6</h1>
  1. type="module" 直接在浏览器端开启ES6Module规范
  并且需要保证页面是基于HTTP/HTTPS协议预览[live server]
  <script type="module" src="./index.js"></script>
</body>

</html>